//
//  BankAllMenu.m
//  bank_ipad2
//
//  Created by nxj bill on 12-3-14.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "BankAllMenu.h"

#import "DetailViewController.h"
#import "Constants.h"

const NSInteger kViewTag = 1;
@implementation BankAllMenu

@synthesize dataDict,dataSourceArray,detailViewController;
#pragma mark -
#pragma mark View lifecycle

- (void)viewDidLoad {
    [super viewDidLoad];
	self.title=@"银行菜单";
	//self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"food.jpg"]];
	
//	self.tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"default-icon.png"]];
//	self.tableView.opaque = NO;
//	self.tableView.backgroundView = nil;
	
	
	UIImageView * image1 = [[UIImageView alloc] initWithFrame: CGRectMake(0, 0, 0, 0)];
	image1.image= [UIImage imageNamed:kBackground];
	[image1 setBackgroundColor:[UIColor clearColor]];	
	self.tableView.backgroundView = image1;
	[image1 release];
	
	//    self.clearsSelectionOnViewWillAppear = NO;
	//    self.contentSizeForViewInPopover = CGSizeMake(320.0, 600.0);
	self.dataSourceArray = [NSMutableArray array];
	
	NSMutableArray*temp = [NSMutableArray array];
	
	
//section1
	//label
	UILabel * label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor clearColor]];	
	label.text = @"余额查询";
	label.tag = kViewTag;
	UIImageView * image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_accquery.png"];
	[image setBackgroundColor:[UIColor clearColor]];
	NSString *filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yue.html" ofType:nil];
	NSString *strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	NSString *url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	
	[temp addObject:[NSArray arrayWithObjects:label,image,url,[NSString stringWithFormat:@"账户查询"],nil]];
	[label release];
	[image release];
	
	//2
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor clearColor]];
	//[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	
	label.text = @"明细查询";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	[temp addObject:[NSArray arrayWithObjects:label,image,url,nil]];
	
	
	[temp addObject:[NSArray arrayWithObjects:
					  label,
					  image,
					  [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"encodeURI('file:///%@')",[[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil]]]
					  ,nil]];
	
	
	[label release];
	[image release];
	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[temp objectAtIndex:0],[temp objectAtIndex:1],nil]];	

	
	
	//sectin2
	NSMutableArray*temp1 = [NSMutableArray array];
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor clearColor]];
	label.text = @"转账限额";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp1 addObject:[NSArray arrayWithObjects:label,image,url,[NSString stringWithFormat:@"账户管理"],nil]];
	[label release];
	[image release];
	
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"增加账户";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp1 addObject:[NSArray arrayWithObjects:label,image,url,nil]];
	[label release];
	[image release];
	
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"账户维护";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp1 addObject:[NSArray arrayWithObjects:label,image,url,nil]];
	[label release];
	[image release];
	
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"默认账户";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];



	[temp1 addObject:[NSArray arrayWithObjects:
					  label,
					  image,
					  [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"encodeURI('file:///%@')",[[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil]]]
					  ,nil]];
	[label release];
	[image release];
	
	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[temp1 objectAtIndex:0],[temp1 objectAtIndex:1],[temp1 objectAtIndex:2],[temp1 objectAtIndex:3],nil]];	
	

	//sectin3
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"活期转定期";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	NSArray *a1 = [NSArray arrayWithObjects:label,image,url,[NSString stringWithFormat:@"储蓄存款"],nil];
	[label release];
	[image release];
	
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"定期转活期";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	NSArray *a2 = [NSArray arrayWithObjects:label,image,url,[NSString stringWithFormat:@"储蓄存款"],nil];
	[label release];
	[image release];
	
	[self.dataSourceArray addObject:[NSArray arrayWithObjects:a1,a2,nil]];	
	
	//sectin4
	NSMutableArray*temp3 = [NSMutableArray array];
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"本行转账";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp3 addObject:[NSArray arrayWithObjects:label,image,url,[NSString stringWithFormat:@"转账汇款"],nil]];
	[label release];
	[image release];
	
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"跨行转账";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp3 addObject:[NSArray arrayWithObjects:label,image,url,nil]];
	[label release];
	[image release];
	
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"手机转账";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp3 addObject:[NSArray arrayWithObjects:label,image,url,nil]];
	[label release];
	[image release];
	
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"注册账户转账";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp3 addObject:[NSArray arrayWithObjects:label,image,url,nil]];
	[label release];
	[image release];
	
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"转账明细";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp3 addObject:[NSArray arrayWithObjects:label,image,url,nil]];
	[label release];
	[image release];
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"常用收款人";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp3 addObject:[NSArray arrayWithObjects:label,image,url,nil]];
	[label release];
	[image release];
	
	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[temp3 objectAtIndex:0],[temp3 objectAtIndex:1],[temp3 objectAtIndex:2],[temp3 objectAtIndex:3],[temp3 objectAtIndex:4],[temp3 objectAtIndex:5],nil]];	
	
	//sectin5
	NSMutableArray*temp4 = [NSMutableArray array];
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"缴税费";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp4 addObject:[NSArray arrayWithObjects:label,image,url,[NSString stringWithFormat:@"自助缴费"],nil]];
	[label release];
	[image release];
	
	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[temp4 objectAtIndex:0],nil]];	
	
	//sectin6
	NSMutableArray*temp5 = [NSMutableArray array];
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"账户管理";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp5 addObject:[NSArray arrayWithObjects:label,image,url,[NSString stringWithFormat:@"用户设置"],nil]];
	[label release];
	[image release];
	
	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
	[label setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
	label.text = @"账户查询";
	label.tag = kViewTag;
	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
	image.image= [UIImage imageNamed:@"icon_setting.png"];
	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	[temp5 addObject:[NSArray arrayWithObjects:label,image,url,nil]];
	[label release];
	[image release];	
	
	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[temp5 objectAtIndex:0],[temp5 objectAtIndex:1],nil]];	
	
//test
//	[self.dataSourceArray removeAllObjects];
//	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label.tag = kViewTag;
//	[label setBackgroundColor:[UIColor redColor]];
//	label.text = @"账户查询";
//	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	UILabel *label1 = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label1.tag = kViewTag;
//	[label1 setBackgroundColor:[UIColor clearColor]];
//	label1.text = @"aaaaaa4444";
//	UIImageView  *image1 = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image1.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[NSArray arrayWithObjects:label,image,url,@"aaa",nil],[NSArray arrayWithObjects:label1,image1,url,nil],nil]];	
//	
//	[label release];
//	[image release];
//	[label1 release];
//	[image1 release];
//	
//	
//	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label.tag = kViewTag;
//	[label setBackgroundColor:[UIColor clearColor]];
//	label.text = @"账户查询";
//	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	label1 = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label1.tag = kViewTag;
//	[label1 setBackgroundColor:[UIColor clearColor]];
//	label1.text = @"aaaaaa4444";
//	image1 = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image1.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[NSArray arrayWithObjects:label,image,url,@"aaa",nil],[NSArray arrayWithObjects:label1,image1,url,nil],nil]];	
//	
//	[label release];
//	[image release];
//	[label1 release];
//	[image1 release];	
//	
//	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label.tag = kViewTag;
//	[label setBackgroundColor:[UIColor clearColor]];
//	label.text = @"账户查询";
//	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	label1 = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label1.tag = kViewTag;
//	[label1 setBackgroundColor:[UIColor clearColor]];
//	label1.text = @"aaaaaa4444";
//	image1 = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image1.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[NSArray arrayWithObjects:label,image,url,@"aaa",nil],[NSArray arrayWithObjects:label1,image1,url,nil],nil]];	
//	
//	[label release];
//	[image release];
//	[label1 release];
//	[image1 release];	
//	
//	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label.tag = kViewTag;
//	[label setBackgroundColor:[UIColor clearColor]];
//	label.text = @"账户查询";
//	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	label1 = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label1.tag = kViewTag;
//	[label1 setBackgroundColor:[UIColor clearColor]];
//	label1.text = @"aaaaaa4444";
//	image1 = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image1.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[NSArray arrayWithObjects:label,image,url,@"aaa",nil],[NSArray arrayWithObjects:label1,image1,url,nil],nil]];	
//	
//	[label release];
//	[image release];
//	[label1 release];
//	[image1 release];	
//	
//	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label.tag = kViewTag;
//	[label setBackgroundColor:[UIColor clearColor]];
//	label.text = @"账户查询";
//	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	label1 = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label1.tag = kViewTag;
//	[label1 setBackgroundColor:[UIColor clearColor]];
//	label1.text = @"aaaaaa4444";
//	image1 = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image1.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[NSArray arrayWithObjects:label,image,url,@"aaa",nil],[NSArray arrayWithObjects:label1,image1,url,nil],nil]];	
//	
//	[label release];
//	[image release];
//	[label1 release];
//	[image1 release];	
//	
//	label = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label.tag = kViewTag;
//	[label setBackgroundColor:[UIColor clearColor]];
//	label.text = @"账户查询";
//	image = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	label1 = [[UILabel alloc] initWithFrame: CGRectMake( 160.0,50.0,100.0,30.0)];
//	label1.tag = kViewTag;
//	[label1 setBackgroundColor:[UIColor clearColor]];
//	label1.text = @"aaaaaa4444";
//	image1 = [[UIImageView alloc] initWithFrame: CGRectMake(20, 2, 110, 110)];
//	image1.image= [UIImage imageNamed:@"icon_setting.png"];
//	filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"yuedetail.html" ofType:nil];
//	strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
//	url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
//	
//	
//	[self.dataSourceArray addObject:[NSArray arrayWithObjects:[NSArray arrayWithObjects:label,image,url,@"aaa",nil],[NSArray arrayWithObjects:label1,image1,url,nil],nil]];	
//	
//	[label release];
//	[image release];
//	[label1 release];
//	[image1 release];	
	}

 - (void)viewWillAppear:(BOOL)animated {
 [super viewWillAppear:animated];
	 
	 NSString *filePathOfIndex = [[NSBundle mainBundle] pathForResource:@"bankallmenuhelp.html" ofType:nil];
	 NSString *strAbsPath= [NSString stringWithFormat:@"encodeURI('file:///%@')",filePathOfIndex];
	 NSString *url  = [detailViewController.detailDescriptionWeb stringByEvaluatingJavaScriptFromString:strAbsPath];
	 [detailViewController.detailDescriptionWeb stopLoading];
	 [detailViewController.detailDescriptionWeb loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
	 
	 
 }


/*
 - (void)viewDidAppear:(BOOL)animated {
 [super viewDidAppear:animated];
 }
 */
/*
 - (void)viewWillDisappear:(BOOL)animated {
 [super viewWillDisappear:animated];
 }
 */
/*
 - (void)viewDidDisappear:(BOOL)animated {
 [super viewDidDisappear:animated];
 }
 */

// Ensure that the view controller supports rotation and that the split view can therefore show in both portrait and landscape.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
	return interfaceOrientation == UIInterfaceOrientationLandscapeLeft ||
	
    interfaceOrientation == UIInterfaceOrientationLandscapeRight;
}


#pragma mark -
#pragma mark Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)aTableView {
    // Return the number of sections.
	//NSArray* temp = [dataSourceArray objectAtIndex:indexPath.section];
	
    return [dataSourceArray count];
}


- (NSInteger)tableView:(UITableView *)aTableView numberOfRowsInSection:(NSInteger)section {
    // Return the number of rows in the section.
	
	NSArray* temp = [dataSourceArray objectAtIndex:section];
	
	int length = [temp  count];
    return length;
}


//系统
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
	
	return ([indexPath row] == 0) ? 110.0 : 110.0;
}

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
	NSArray* temp = [dataSourceArray objectAtIndex:section];
	NSString *s = [[temp objectAtIndex: 0] objectAtIndex:3];
	return s;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    static NSString *CellIdentifier = @"CellIdentifier";
	NSArray* temp = [dataSourceArray objectAtIndex:indexPath.section];
    
    // Dequeue or create a cell of the appropriate type.
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
        cell.accessoryType = UITableViewCellAccessoryNone;
		

		
    }


	cell.backgroundColor = [UIColor clearColor];

	UIView *viewToCheck = nil;
	viewToCheck = [cell.contentView viewWithTag:kViewTag];
	if (viewToCheck)
		[viewToCheck removeFromSuperview];
	
	
		UIView *label;
		label = [[temp objectAtIndex: indexPath.row] objectAtIndex:0];
		label = [[temp objectAtIndex: indexPath.row] objectAtIndex:0];
		
		
		[cell.contentView addSubview:label];
		
		UIView *image;
		image = [[temp objectAtIndex: indexPath.row] objectAtIndex:1];
		[cell.contentView addSubview:image];
	

	
	
    // Configure the cell.
    //cell.textLabel.text = [NSString stringWithFormat:@"Row %d", indexPath.row];
    return cell;
}


/*
 // Override to support conditional editing of the table view.
 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
 // Return NO if you do not want the specified item to be editable.
 return YES;
 }
 */


/*
 // Override to support editing the table view.
 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
 
 if (editingStyle == UITableViewCellEditingStyleDelete) {
 // Delete the row from the data source
 [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES];
 }   
 else if (editingStyle == UITableViewCellEditingStyleInsert) {
 // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
 }   
 }
 */


/*
 // Override to support rearranging the table view.
 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath {
 }
 */


/*
 // Override to support conditional rearranging of the table view.
 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {
 // Return NO if you do not want the item to be re-orderable.
 return YES;
 }
 */


#pragma mark -
#pragma mark Table view delegate

- (void)tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    detailViewController.detailItem = [NSString stringWithFormat:@"Row %d", indexPath.row];
	

	NSArray* temp = [dataSourceArray objectAtIndex:indexPath.section];
	
	NSString *url = [[temp objectAtIndex: indexPath.row] objectAtIndex:2];
	[detailViewController.detailDescriptionWeb stopLoading];
	[detailViewController.detailDescriptionWeb loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
}


#pragma mark -
#pragma mark Memory management

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Relinquish ownership any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    // Relinquish ownership of anything that can be recreated in viewDidLoad or on demand.
    // For example: self.myOutlet = nil;
	
	dataDict= nil;
	dataSourceArray= nil;
}


- (void)dealloc {
	[dataDict release];
	[dataSourceArray release];
    [super dealloc];
}


@end

@end

